import request from './request'

export default {
  // 检测池状态
  pairInfo: (params) => request.get('/ethswap/swap/pairInfo', params),

  // 预估状态
  estimateSwap: (params) => request.get('/ethswap/swap/estimateSwap', params),

  // 检测主网余额
  ethBalance: (params) => request.get('/ethswap/transfer/ethBalance', params),

  // 检测代币余额
  tokenBalance: (params) =>
    request.get('/ethswap/transfer/tokenBalance', params),

  // 下单
  swap: (params) => request.post('/ethswap/swap/swap', params),

  // 定时下单
  swapTask: (params) => request.post('/ethswap/swap/swapTask', params),

  // 批量下单
  batchSwap: (params) => request.post('/ethswap/swap/batchSwap', params),

  // 批量转账
  batchTransfer: (params) =>
    request.post('/ethswap/transfer/batchTransfer', params),
}
